﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptC66aHD : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private HRM_PAYINSURANCE_C66AHD cls;
        private IContainer components;
        private DetailBand Detail;
        private DetailBand Detail1;
        private DetailReportBand DetailReport;
        private GroupHeaderBand GroupHeader1;
        private int m_Index;
        private int m_Order;
        private Guid m_PayInsuranceTableListID;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtBankAccount;
        private XRLabel txtCompany;
        private XRLabel txtCompanyCode;
        private XRTableCell txtCondition;
        private XRLabel txtCourseMonthYear;
        private XRTableCell txtDescription;
        private XRTableCell txtEmployeeName;
        private XRTableCell txtMoney;
        private XRLabel txtNumberEmployee;
        private XRTableCell txtOrder;
        private XRTableCell txtProgressAbsent;
        private XRTableCell txtSalary;
        private XRTableCell txtSocialInsuranceCode;
        private XRTableCell txtTermAbsent;
        private XRTableCell txtTime;
        private XRLabel txtType;
        private XRLabel txtWage;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel13;
        private XRLabel xrLabel14;
        private XRLabel xrLabel18;
        private XRLabel xrLabel19;
        private XRLabel xrLabel20;
        private XRLabel xrLabel22;
        private XRLabel xrLabel23;
        private XRLabel xrLabel32;
        private XRLabel xrLabel4;
        private XRLabel xrLabel9;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable3;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell26;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell50;
        private XRTableCell xrTableCell51;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;
        private XRTableRow xrTableRow6;

        public rptC66aHD()
        {
            this.components = null;
            this.m_Index = 0;
            this.m_PayInsuranceTableListID = Guid.Empty;
            this.cls = new HRM_PAYINSURANCE_C66AHD();
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptC66aHD(Guid PayInsuranceTableListID)
        {
            this.components = null;
            this.m_Index = 0;
            this.m_PayInsuranceTableListID = Guid.Empty;
            this.cls = new HRM_PAYINSURANCE_C66AHD();
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_PayInsuranceTableListID = PayInsuranceTableListID;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.txtType = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeName = new XRTableCell();
            this.txtSocialInsuranceCode = new XRTableCell();
            this.txtCondition = new XRTableCell();
            this.txtSalary = new XRTableCell();
            this.txtTime = new XRTableCell();
            this.txtTermAbsent = new XRTableCell();
            this.txtProgressAbsent = new XRTableCell();
            this.txtMoney = new XRTableCell();
            this.txtDescription = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.txtWage = new XRLabel();
            this.txtNumberEmployee = new XRLabel();
            this.txtBankAccount = new XRLabel();
            this.txtCompany = new XRLabel();
            this.txtCompanyCode = new XRLabel();
            this.txtCourseMonthYear = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.xrLabel4 = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow6 = new XRTableRow();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.xrTableCell26 = new XRTableCell();
            this.xrTableCell27 = new XRTableCell();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell50 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell51 = new XRTableCell();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrLabel32 = new XRLabel();
            this.xrLabel23 = new XRLabel();
            this.xrLabel20 = new XRLabel();
            this.xrLabel22 = new XRLabel();
            this.xrLabel18 = new XRLabel();
            this.xrLabel19 = new XRLabel();
            this.xrLabel13 = new XRLabel();
            this.xrLabel14 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel11 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell25 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrLabel9 = new XRLabel();
            this.DetailReport = new DetailReportBand();
            this.Detail1 = new DetailBand();
            this.xrTable1.BeginInit();
            this.xrTable4.BeginInit();
            this.xrTable3.BeginInit();
            this.xrTable2.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.txtType });
            this.Detail.HeightF = 21f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.txtType.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.txtType.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.txtType.LocationFloat = new PointFloat(0.0009218852f, 0f);
            this.txtType.Name = "txtType";
            this.txtType.Padding = new PaddingInfo(4, 2, 0, 0, 100f);
            this.txtType.SizeF = new SizeF(1084.999f, 21f);
            this.txtType.StylePriority.UseBorders = false;
            this.txtType.StylePriority.UseFont = false;
            this.txtType.StylePriority.UsePadding = false;
            this.txtType.StylePriority.UseTextAlignment = false;
            this.txtType.TextAlignment = TextAlignment.MiddleLeft;
            this.txtType.BeforePrint += new PrintEventHandler(this.txtType_BeforePrint);
            this.xrTable1.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable1.Font = new Font("Times New Roman", 8.75f);
            this.xrTable1.LocationFloat = new PointFloat(0.0009217262f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1085f, 23.33333f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.txtEmployeeName, this.txtSocialInsuranceCode, this.txtCondition, this.txtSalary, this.txtTime, this.txtTermAbsent, this.txtProgressAbsent, this.txtMoney, this.txtDescription });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableRow1.StylePriority.UsePadding = false;
            this.xrTableRow1.StylePriority.UseTextAlignment = false;
            this.xrTableRow1.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow1.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Weight = 0.10760120267981202;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeName.Name = "txtEmployeeName";
            this.txtEmployeeName.Text = "[EmployeeName]";
            this.txtEmployeeName.Weight = 0.41117497714949908;
            this.txtSocialInsuranceCode.Name = "txtSocialInsuranceCode";
            this.txtSocialInsuranceCode.Text = "[SocialInsuranceCode]";
            this.txtSocialInsuranceCode.Weight = 0.268433204480294;
            this.txtCondition.Name = "txtCondition";
            this.txtCondition.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtCondition.StylePriority.UsePadding = false;
            this.txtCondition.StylePriority.UseTextAlignment = false;
            this.txtCondition.Text = "[Condition]";
            this.txtCondition.TextAlignment = TextAlignment.MiddleCenter;
            this.txtCondition.Weight = 0.27131338570128455;
            this.txtCondition.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtSalary.Name = "txtSalary";
            this.txtSalary.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtSalary.StylePriority.UsePadding = false;
            this.txtSalary.StylePriority.UseTextAlignment = false;
            this.txtSalary.Text = "[Salary!#,0]";
            this.txtSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalary.Weight = 0.26301817783503295;
            this.txtSalary.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtTime.Name = "txtTime";
            this.txtTime.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtTime.StylePriority.UsePadding = false;
            this.txtTime.StylePriority.UseTextAlignment = false;
            this.txtTime.Text = "[Time]";
            this.txtTime.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTime.Weight = 0.26900919336425805;
            this.txtTime.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtTermAbsent.Name = "txtTermAbsent";
            this.txtTermAbsent.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtTermAbsent.StylePriority.UsePadding = false;
            this.txtTermAbsent.StylePriority.UseTextAlignment = false;
            this.txtTermAbsent.Text = "[TermAbsent]";
            this.txtTermAbsent.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTermAbsent.Weight = 0.32141523512077969;
            this.txtTermAbsent.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtProgressAbsent.Name = "txtProgressAbsent";
            this.txtProgressAbsent.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtProgressAbsent.StylePriority.UsePadding = false;
            this.txtProgressAbsent.StylePriority.UseTextAlignment = false;
            this.txtProgressAbsent.Text = "[ProgressAbsent]";
            this.txtProgressAbsent.TextAlignment = TextAlignment.MiddleCenter;
            this.txtProgressAbsent.Weight = 0.30817984297640655;
            this.txtProgressAbsent.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtMoney.Name = "txtMoney";
            this.txtMoney.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.txtMoney.StylePriority.UsePadding = false;
            this.txtMoney.StylePriority.UseTextAlignment = false;
            this.txtMoney.Text = "[Money!#,0]";
            this.txtMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtMoney.Weight = 0.24241235534515909;
            this.txtMoney.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Padding = new PaddingInfo(2, 0, 0, 0, 100f);
            this.txtDescription.StylePriority.UsePadding = false;
            this.txtDescription.StylePriority.UseTextAlignment = false;
            this.txtDescription.Text = "[Description]";
            this.txtDescription.TextAlignment = TextAlignment.MiddleLeft;
            this.txtDescription.Weight = 0.53744242534747422;
            this.txtDescription.BeforePrint += new PrintEventHandler(this.txtValue_BeforePrint);
            this.TopMargin.HeightF = 38f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 48f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.txtWage, this.txtNumberEmployee, this.txtBankAccount, this.txtCompany, this.txtCompanyCode, this.txtCourseMonthYear, this.xrLabel1, this.xrLabel4 });
            this.ReportHeader.HeightF = 190f;
            this.ReportHeader.Name = "ReportHeader";
            this.txtWage.Font = new Font("Times New Roman", 9.75f);
            this.txtWage.LocationFloat = new PointFloat(311.4176f, 154.2916f);
            this.txtWage.Name = "txtWage";
            this.txtWage.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtWage.SizeF = new SizeF(611.4998f, 17.70834f);
            this.txtWage.StylePriority.UseFont = false;
            this.txtWage.StylePriority.UseTextAlignment = false;
            this.txtWage.Text = "Tổng quỹ lương trong (th\x00e1ng) qu\x00fd: ....................................................................................";
            this.txtWage.TextAlignment = TextAlignment.MiddleLeft;
            this.txtNumberEmployee.Font = new Font("Times New Roman", 9.75f);
            this.txtNumberEmployee.LocationFloat = new PointFloat(311.4176f, 136.2917f);
            this.txtNumberEmployee.Name = "txtNumberEmployee";
            this.txtNumberEmployee.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtNumberEmployee.SizeF = new SizeF(611.4998f, 17.70837f);
            this.txtNumberEmployee.StylePriority.UseFont = false;
            this.txtNumberEmployee.StylePriority.UseTextAlignment = false;
            this.txtNumberEmployee.Text = "Tổng số lao động: ........................ Trong đ\x00f3 nữ: ....................................";
            this.txtNumberEmployee.TextAlignment = TextAlignment.MiddleLeft;
            this.txtBankAccount.Font = new Font("Times New Roman", 9.75f);
            this.txtBankAccount.LocationFloat = new PointFloat(311.4176f, 116.7083f);
            this.txtBankAccount.Name = "txtBankAccount";
            this.txtBankAccount.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtBankAccount.SizeF = new SizeF(611.4998f, 17.70834f);
            this.txtBankAccount.StylePriority.UseFont = false;
            this.txtBankAccount.StylePriority.UseTextAlignment = false;
            this.txtBankAccount.Text = "Số hiệu t\x00e0i khoản: .......................................mở tại: ..................................................";
            this.txtBankAccount.TextAlignment = TextAlignment.MiddleLeft;
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(1.000922f, 24.70834f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.txtCompanyCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompanyCode.LocationFloat = new PointFloat(1.000922f, 6.208344f);
            this.txtCompanyCode.Name = "txtCompanyCode";
            this.txtCompanyCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompanyCode.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompanyCode.StylePriority.UseFont = false;
            this.txtCompanyCode.Text = "M\x00e3 đơn vị:__/__ ____";
            this.txtCourseMonthYear.Font = new Font("Times New Roman", 9.75f);
            this.txtCourseMonthYear.LocationFloat = new PointFloat(4.768372E-05f, 99.00001f);
            this.txtCourseMonthYear.Name = "txtCourseMonthYear";
            this.txtCourseMonthYear.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCourseMonthYear.SizeF = new SizeF(1085f, 17.70834f);
            this.txtCourseMonthYear.StylePriority.UseFont = false;
            this.txtCourseMonthYear.StylePriority.UseTextAlignment = false;
            this.txtCourseMonthYear.Text = "Th\x00e1ng ...... qu\x00fd ...... năm ...............";
            this.txtCourseMonthYear.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel1.LocationFloat = new PointFloat(803.7509f, 6.00001f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(281.249f, 17.70833f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.StylePriority.UseTextAlignment = false;
            this.xrLabel1.Text = "Mẩu số: C66a-HD";
            this.xrLabel1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel4.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.xrLabel4.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(1085f, 30.25001f);
            this.xrLabel4.StylePriority.UseFont = false;
            this.xrLabel4.StylePriority.UseTextAlignment = false;
            this.xrLabel4.Text = "DANH S\x00c1CH NGƯỜI LAO ĐỘNG ĐỀ NGHỊ HƯỞNG CHẾ ĐỘ ỐM ĐAU";
            this.xrLabel4.TextAlignment = TextAlignment.MiddleCenter;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrTable4, this.xrTable3 });
            this.ReportFooter.HeightF = 182f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.Font = new Font("Times New Roman", 8.75f, FontStyle.Bold);
            this.xrTable4.LocationFloat = new PointFloat(1.000921f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow6 });
            this.xrTable4.SizeF = new SizeF(1085f, 23.33333f);
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTable4.StylePriority.UseFont = false;
            this.xrTableRow6.Cells.AddRange(new XRTableCell[] { this.xrTableCell9, this.xrTableCell11, this.xrTableCell12, this.xrTableCell13, this.xrTableCell20, this.xrTableCell21, this.xrTableCell22, this.xrTableCell23, this.xrTableCell26, this.xrTableCell27 });
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableRow6.StylePriority.UsePadding = false;
            this.xrTableRow6.StylePriority.UseTextAlignment = false;
            this.xrTableRow6.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow6.Weight = 1.0;
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.Weight = 0.10483622572128667;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.StylePriority.UseTextAlignment = false;
            this.xrTableCell11.Text = "Tổng cộng";
            this.xrTableCell11.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell11.Weight = 0.41117501933969924;
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.Weight = 0.26843318338519395;
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell13.StylePriority.UsePadding = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell13.Weight = 0.27131311146498338;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell20.StylePriority.UsePadding = false;
            this.xrTableCell20.StylePriority.UseTextAlignment = false;
            this.xrTableCell20.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell20.Weight = 0.263018684117435;
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell21.StylePriority.UsePadding = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell21.Weight = 0.26900894022305705;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell22.StylePriority.UsePadding = false;
            this.xrTableCell22.StylePriority.UseTextAlignment = false;
            this.xrTableCell22.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell22.Weight = 0.32141523512077969;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell23.StylePriority.UsePadding = false;
            this.xrTableCell23.StylePriority.UseTextAlignment = false;
            this.xrTableCell23.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell23.Weight = 0.308179463264605;
            this.xrTableCell26.Name = "xrTableCell26";
            this.xrTableCell26.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell26.StylePriority.UsePadding = false;
            this.xrTableCell26.StylePriority.UseTextAlignment = false;
            this.xrTableCell26.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell26.Weight = 0.24241239753535926;
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Padding = new PaddingInfo(0, 2, 0, 0, 100f);
            this.xrTableCell27.StylePriority.UsePadding = false;
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleRight;
            this.xrTableCell27.Weight = 0.540207739827601;
            this.xrTable3.LocationFloat = new PointFloat(0f, 77.83338f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4, this.xrTableRow5 });
            this.xrTable3.SizeF = new SizeF(1085f, 75.95839f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell3, this.xrTableCell7, this.xrTableCell50 });
            this.xrTableRow3.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.StylePriority.UseFont = false;
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Weight = 0.40264967736302859;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 0.40264967736302859;
            this.xrTableCell50.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell50.Name = "xrTableCell50";
            this.xrTableCell50.StylePriority.UseFont = false;
            this.xrTableCell50.StylePriority.UseTextAlignment = false;
            this.xrTableCell50.Text = "Ng\x00e0y......... th\x00e1ng........ năm...............";
            this.xrTableCell50.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell50.Weight = 0.70276504889577462;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell4, this.xrTableCell10, this.xrTableCell51 });
            this.xrTableRow4.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.StylePriority.UseFont = false;
            this.xrTableRow4.Weight = 0.62887999308103826;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Người lập";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.40264967736302859;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "Kế to\x00e1n trưởng";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 0.40264967736302859;
            this.xrTableCell51.Name = "xrTableCell51";
            this.xrTableCell51.StylePriority.UseTextAlignment = false;
            this.xrTableCell51.Text = "Thủ trưởng";
            this.xrTableCell51.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell51.Weight = 0.70276504889577462;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell8, this.xrTableCell1, this.xrTableCell2 });
            this.xrTableRow5.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.StylePriority.UseFont = false;
            this.xrTableRow5.StylePriority.UseTextAlignment = false;
            this.xrTableRow5.TextAlignment = TextAlignment.TopCenter;
            this.xrTableRow5.Weight = 0.83130953704733324;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Text = "(K\x00fd, họ t\x00ean)";
            this.xrTableCell8.Weight = 0.40264967736302859;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "(K\x00fd, họ t\x00ean)";
            this.xrTableCell1.Weight = 0.40264967736302859;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Text = "(K\x00fd, đ\x00f3ng dấu)";
            this.xrTableCell2.Weight = 0.70276504889577462;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrLabel32, this.xrLabel23, this.xrLabel20, this.xrLabel22, this.xrLabel18, this.xrLabel19, this.xrLabel13, this.xrLabel14, this.xrLabel12, this.xrLabel11, this.xrLabel10, this.xrTable2, this.xrLabel9 });
            this.GroupHeader1.HeightF = 120f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrLabel32.Borders = BorderSide.Right | BorderSide.Top | BorderSide.Left;
            this.xrLabel32.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel32.LocationFloat = new PointFloat(888.62f, 0f);
            this.xrLabel32.Name = "xrLabel32";
            this.xrLabel32.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel32.SizeF = new SizeF(196.38f, 99.00001f);
            this.xrLabel32.StylePriority.UseBorders = false;
            this.xrLabel32.StylePriority.UseFont = false;
            this.xrLabel32.StylePriority.UseTextAlignment = false;
            this.xrLabel32.Text = "Ghi ch\x00fa";
            this.xrLabel32.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel23.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel23.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel23.LocationFloat = new PointFloat(574.2499f, 0f);
            this.xrLabel23.Name = "xrLabel23";
            this.xrLabel23.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel23.SizeF = new SizeF(314.3701f, 21.99999f);
            this.xrLabel23.StylePriority.UseBorders = false;
            this.xrLabel23.StylePriority.UseFont = false;
            this.xrLabel23.StylePriority.UseTextAlignment = false;
            this.xrLabel23.Text = "Số đơn vị đề nghị";
            this.xrLabel23.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel20.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel20.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel20.LocationFloat = new PointFloat(801.9534f, 22.50001f);
            this.xrLabel20.Name = "xrLabel20";
            this.xrLabel20.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel20.SizeF = new SizeF(86.66669f, 76.5f);
            this.xrLabel20.StylePriority.UseBorders = false;
            this.xrLabel20.StylePriority.UseFont = false;
            this.xrLabel20.StylePriority.UseTextAlignment = false;
            this.xrLabel20.Text = "Số tiền";
            this.xrLabel20.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel22.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel22.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel22.LocationFloat = new PointFloat(574.25f, 22.50001f);
            this.xrLabel22.Name = "xrLabel22";
            this.xrLabel22.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel22.SizeF = new SizeF(227.7034f, 25.42f);
            this.xrLabel22.StylePriority.UseBorders = false;
            this.xrLabel22.StylePriority.UseFont = false;
            this.xrLabel22.StylePriority.UseTextAlignment = false;
            this.xrLabel22.Text = "Số ng\x00e0y nghỉ";
            this.xrLabel22.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel18.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel18.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel18.LocationFloat = new PointFloat(690.4951f, 47.75f);
            this.xrLabel18.Name = "xrLabel18";
            this.xrLabel18.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel18.SizeF = new SizeF(111.4583f, 51.25001f);
            this.xrLabel18.StylePriority.UseBorders = false;
            this.xrLabel18.StylePriority.UseFont = false;
            this.xrLabel18.StylePriority.UseTextAlignment = false;
            this.xrLabel18.Text = "Lũy kế từ đầu năm";
            this.xrLabel18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel19.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel19.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel19.LocationFloat = new PointFloat(574.25f, 47.91667f);
            this.xrLabel19.Name = "xrLabel19";
            this.xrLabel19.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel19.SizeF = new SizeF(116.2451f, 51.25001f);
            this.xrLabel19.StylePriority.UseBorders = false;
            this.xrLabel19.StylePriority.UseFont = false;
            this.xrLabel19.StylePriority.UseTextAlignment = false;
            this.xrLabel19.Text = "Trong kỳ";
            this.xrLabel19.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel13.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel13.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel13.LocationFloat = new PointFloat(382f, 0f);
            this.xrLabel13.Name = "xrLabel13";
            this.xrLabel13.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel13.SizeF = new SizeF(94.66f, 99.16668f);
            this.xrLabel13.StylePriority.UseBorders = false;
            this.xrLabel13.StylePriority.UseFont = false;
            this.xrLabel13.StylePriority.UseTextAlignment = false;
            this.xrLabel13.Text = "Tiền lương t\x00ednh hưởng BHXH";
            this.xrLabel13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel14.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel14.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel14.LocationFloat = new PointFloat(476.6667f, 0f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(97.58322f, 99.00001f);
            this.xrLabel14.StylePriority.UseBorders = false;
            this.xrLabel14.StylePriority.UseFont = false;
            this.xrLabel14.StylePriority.UseTextAlignment = false;
            this.xrLabel14.Text = "Thời gian đ\x00f3ng BHXH";
            this.xrLabel14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel12.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel12.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel12.LocationFloat = new PointFloat(283.7083f, 0f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(99f, 99.16668f);
            this.xrLabel12.StylePriority.UseBorders = false;
            this.xrLabel12.StylePriority.UseFont = false;
            this.xrLabel12.StylePriority.UseTextAlignment = false;
            this.xrLabel12.Text = "Điều kiện t\x00ednh hưởng";
            this.xrLabel12.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel11.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel11.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel11.LocationFloat = new PointFloat(186.625f, 0f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(97.08331f, 99.16668f);
            this.xrLabel11.StylePriority.UseBorders = false;
            this.xrLabel11.StylePriority.UseFont = false;
            this.xrLabel11.StylePriority.UseTextAlignment = false;
            this.xrLabel11.Text = "Số sổ BHXH";
            this.xrLabel11.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel10.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel10.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel10.LocationFloat = new PointFloat(37.91669f, 0f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(148.7083f, 99.16668f);
            this.xrLabel10.StylePriority.UseBorders = false;
            this.xrLabel10.StylePriority.UseFont = false;
            this.xrLabel10.StylePriority.UseTextAlignment = false;
            this.xrLabel10.Text = "Họ v\x00e0 t\x00ean";
            this.xrLabel10.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTable2.Borders = BorderSide.All;
            this.xrTable2.Font = new Font("Times New Roman", 8.75f);
            this.xrTable2.LocationFloat = new PointFloat(6.357829E-05f, 99.16668f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1085f, 20.83334f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.xrTableCell24, this.xrTableCell15, this.xrTableCell14, this.xrTableCell16, this.xrTableCell25, this.xrTableCell5, this.xrTableCell18, this.xrTableCell17, this.xrTableCell19, this.xrTableCell6 });
            this.xrTableRow2.Font = new Font("Times New Roman", 8.75f, FontStyle.Bold);
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.StylePriority.UseFont = false;
            this.xrTableRow2.StylePriority.UseTextAlignment = false;
            this.xrTableRow2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow2.Weight = 1.0;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.Text = "A";
            this.xrTableCell24.Weight = 0.10760357587856703;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Text = "B";
            this.xrTableCell15.Weight = 0.41117500879214913;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Text = "C";
            this.xrTableCell14.Weight = 0.26843320096443374;
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Text = "D";
            this.xrTableCell16.Weight = 0.27131311146498827;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Text = "1";
            this.xrTableCell25.Weight = 0.26301851848364305;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Text = "2";
            this.xrTableCell5.Weight = 0.26900893922659141;
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.Text = "3";
            this.xrTableCell18.Weight = 0.32141540419772741;
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.Text = "4";
            this.xrTableCell17.Weight = 0.3081796238917302;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Text = "5";
            this.xrTableCell19.Weight = 0.2424122236030129;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.Text = "E";
            this.xrTableCell6.Weight = 0.53744039349715722;
            this.xrLabel9.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel9.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel9.LocationFloat = new PointFloat(0f, 0f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(37.9167f, 99.16668f);
            this.xrLabel9.StylePriority.UseBorders = false;
            this.xrLabel9.StylePriority.UseFont = false;
            this.xrLabel9.StylePriority.UseTextAlignment = false;
            this.xrLabel9.Text = "Số TT";
            this.xrLabel9.TextAlignment = TextAlignment.MiddleCenter;
            this.DetailReport.Bands.AddRange(new Band[] { this.Detail1 });
            this.DetailReport.Level = 0;
            this.DetailReport.Name = "DetailReport";
            this.Detail1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.Detail1.HeightF = 23.33333f;
            this.Detail1.Name = "Detail1";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter, this.GroupHeader1, this.DetailReport });
            base.Landscape = true;
            base.Margins = new Margins(50, 0x22, 0x26, 0x30);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rpt03aTBH_BeforePrint);
            this.xrTable1.EndInit();
            this.xrTable4.EndInit();
            this.xrTable3.EndInit();
            this.xrTable2.EndInit();
            this.EndInit();
        }

        private void LoadD02TS()
        {
            DataSet set = new DataSet();
            DataTable listType = new DataTable();
            listType = this.cls.GetListType(this.m_PayInsuranceTableListID);
            set.Tables.Add(listType);
            base.DataSource = set;
            this.txtType.DataBindings.Add("Text", base.DataSource, "Type");
        }

        private void rpt03aTBH_BeforePrint(object sender, PrintEventArgs e)
        {
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompanyCode.Text = "M\x00e3 đơn vị: " + "";// MyInfo.CompanyCode;
                this.txtCompany.Text = "T\x00ean đơn vị: " + "";//MyInfo.Company;
                this.txtBankAccount.Text = "Số t\x00e0i khoản:  " + "" // MyInfo.BankAccount.ToUpper() 
                +"   mở tại: " + "";//MyInfo.OpenedAt.ToUpper();
            }
            HRM_PAYINSURANCE_TABLELIST hrm_payinsurance_tablelist = new HRM_PAYINSURANCE_TABLELIST();
            hrm_payinsurance_tablelist.Get(this.m_PayInsuranceTableListID);
            this.txtCourseMonthYear.Text = "Qu\x00fd: " + hrm_payinsurance_tablelist.Quarter.ToString() + " Th\x00e1ng " + hrm_payinsurance_tablelist.Month.ToString() + " Năm " + hrm_payinsurance_tablelist.Year.ToString();
            this.txtNumberEmployee.Text = "Tổng số lao động:        " + hrm_payinsurance_tablelist.NumberEmployee.ToString() + " (người)        Trong đ\x00f3 nữ:  " + hrm_payinsurance_tablelist.NumberEmployeeFemale.ToString() + " (người)";
            this.txtWage.Text = "Tổng quỹ lương trong th\x00e1ng (qu\x00fd):     " + hrm_payinsurance_tablelist.Wage.ToString("#,0");
            this.LoadD02TS();
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }

        private void txtType_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order = 0;
            DataSet set = new DataSet();
            DataTable listByType = new DataTable();
            listByType = this.cls.GetListByType(this.m_PayInsuranceTableListID, int.Parse(this.txtType.Text));
            set.Tables.Add(listByType);
            this.DetailReport.DataSource = set;
            this.txtEmployeeName.DataBindings.Add("Text", this.DetailReport.DataSource, "EmployeeName");
            this.txtSocialInsuranceCode.DataBindings.Add("Text", this.DetailReport.DataSource, "SocialInsuranceCode");
            this.txtCondition.DataBindings.Add("Text", this.DetailReport.DataSource, "Condition");
            this.txtSalary.DataBindings.Add("Text", this.DetailReport.DataSource, "Salary", "{0:##,##0}");
            this.txtTime.DataBindings.Add("Text", this.DetailReport.DataSource, "Time");
            this.txtTermAbsent.DataBindings.Add("Text", this.DetailReport.DataSource, "TermAbsent");
            this.txtProgressAbsent.DataBindings.Add("Text", this.DetailReport.DataSource, "ProgressAbsent");
            this.txtMoney.DataBindings.Add("Text", this.DetailReport.DataSource, "Money", "{0:##,##0}");
            this.txtDescription.DataBindings.Add("Text", this.DetailReport.DataSource, "Description");
            string str = "";
            if (this.m_Index == 0)
            {
                str = "I";
            }
            else if (this.m_Index == 1)
            {
                str = "II";
            }
            else if (this.m_Index == 2)
            {
                str = "III";
            }
            this.m_Index++;
            string text = this.txtType.Text;
            if (text != null)
            {
                if (!(text == "0"))
                {
                    if (text == "1")
                    {
                        this.txtType.Text = str + " - Bản th\x00e2n ốm d\x00e0i ng\x00e0y";
                    }
                    else if (text == "2")
                    {
                        this.txtType.Text = str + " - Con ốm";
                    }
                }
                else
                {
                    this.txtType.Text = str + " - Bản th\x00e2n ốm ngắn ng\x00e0y";
                }
            }
        }

        private void txtValue_BeforePrint(object sender, PrintEventArgs e)
        {
            XRLabel label = sender as XRLabel;
            if (label.Text == "0")
            {
                label.Text = "";
            }
        }
    }
}

